/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ModelLayer;

import DBLayer.MapName;

/**
 *
 * @author Moulde
 */
public class Product
{

    @MapName(ColumnName = "ID")
    protected int productID;
    protected int minStock;
    protected int maxStock;
    protected int quantity;
    protected String description;
    protected Supplier supplier;
    protected int supplierID;
    @MapName(ColumnName="PurchasePrice")
    protected double purchasePrice;
    protected double salesPrice;

    public Product()
    {
    }

    public Product(int minStock, int maxStock, int quantity, String description, Supplier supplier)
    {
        this.minStock = minStock;
        this.maxStock = maxStock;
        this.quantity = quantity;
        this.description = description;
        this.supplier = supplier;
    }

        /**
     * Get the value of salesPrice
     *
     * @return the value of salesPrice
     */
    public double getSalesPrice()
    {
        return salesPrice;
    }

    /**
     * Set the value of salesPrice
     *
     * @param salesPrice new value of salesPrice
     */
    public void setSalesPrice(double salesPrice)
    {
        this.salesPrice = salesPrice;
    }

    /**
     * Get the value of purchasePrice
     *
     * @return the value of purchasePrice
     */
    public double getPurchasePrice()
    {
        return purchasePrice;
    }

    /**
     * Set the value of purchasePrice
     *
     * @param purchasePrice new value of purchasePrice
     */
    public void setPurchasePrice(double purchasePrice)
    {
        this.purchasePrice = purchasePrice;
    }

    /**
     * Get the value of supplierID
     *
     * @return the value of supplierID
     */
    public int getSupplierID()
    {
        return supplierID;
    }

    /**
     * Set the value of supplierID
     *
     * @param supplierID new value of supplierID
     */
    public void setSupplierID(int supplierID)
    {
        this.supplierID = supplierID;
    }

    /**
     * Get the value of ProductID
     *
     * @return the value of ProductID
     */
    public int getProductID()
    {
        return productID;
    }

    /**
     * Set the value of ProductID
     *
     * @param ProductID new value of ProductID
     */
    public void setProductID(int ProductID)
    {
        this.productID = ProductID;
    }

    /**
     * Get the value of minStock
     *
     * @return the value of minStock
     */
    public int getMinStock()
    {
        return minStock;
    }

    /**
     * Set the value of minStock
     *
     * @param minStock new value of minStock
     */
    public void setMinStock(int minStock)
    {
        this.minStock = minStock;
    }

    /**
     * Get the value of maxStock
     *
     * @return the value of maxStock
     */
    public int getMaxStock()
    {
        return maxStock;
    }

    /**
     * Set the value of maxStock
     *
     * @param maxStock new value of maxStock
     */
    public void setMaxStock(int maxStock)
    {
        this.maxStock = maxStock;
    }

    /**
     * Get the value of Quantity
     *
     * @return the value of Quantity
     */
    public int getQuantity()
    {
        return quantity;
    }

    /**
     * Set the value of Quantity
     *
     * @param Quantity new value of Quantity
     */
    public void setQuantity(int Quantity)
    {
        this.quantity = Quantity;
    }

    /**
     * Get the value of description
     *
     * @return the value of description
     */
    public String getDescription()
    {
        return description;
    }

    /**
     * Set the value of description
     *
     * @param description new value of description
     */
    public void setDescription(String description)
    {
        this.description = description;
    }

    /**
     * Get the value of supplier
     *
     * @return the value of supplier
     */
    public Supplier getSupplier()
    {
        return supplier;
    }

    /**
     * Set the value of supplier
     *
     * @param supplier new value of supplier
     */
    public void setSupplier(Supplier supplier)
    {
        this.supplier = supplier;
    }
}
